package top.maof.book.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import top.maof.book.model.Book;
import top.maof.book.model.Shelf;
import top.maof.book.result.PageData;
import top.maof.book.result.PageWrap;

import java.util.List;

/**
 * Created by CodeX4J.
 */
@Service
public interface ShelfService extends IService<Shelf> {
    public PageData<Shelf> findPage(PageWrap<Shelf> pageWrap);

    public int add(Shelf shelf);

    public Shelf find(int id);

    public int update(Shelf shelf);

    public int delete(int id);

    public int delete(int userId, int bookId);

    public List<Book> getProfileShelf(Integer usrId);

    public Shelf select(int userId, int bookId);

    int shelfNum(int bookId);
}
